<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style/css/common.css" type="text/css" />
<LINK href="style/css/jquery-ui-1.7.2.custom.min.css" type=text/css rel=stylesheet>
<title>管理区域</title>
</head>
<body>
<div id="man_zone">
<p>
<table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
  <tr>
  <form method="post" action="index.php?m=infotype&a=add">
    <td>类型名：<input type="text" name="name"  /><input value="添加" type="submit" /></td>
    </form>
  </tr>
</table>
</p>
<p>
<table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
  <tr>
    <td>ID</td>
    <td>类型</td>
    <td>操作</td>
  </tr>
  <%foreach item=val from=$infotype%>
  <form id="form1" name="form1" method="post" action="index.php?m=infotype&a=edit&id=<%$val.id%>">
  <tr>
    <td><%$val.id%></td>
    <td><input type="text" name="name" value="<%$val.name%>"  /></td>
    <td><input type="submit" name="提交" /> <a href="index.php?m=infotype&a=delete&id=<%$val.id%>" class="delete">删除</a></td>
  </tr>
  </form>
  <%/foreach%>
</table>
</p>
</div>
</body>
</html>